package com.ByteDance.model.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Setter;

@Data
public class Video {

    /**
     * 视频唯一标识
     */
    @ApiModelProperty(value = "视频唯一标识")
    private long id;

    /**
     * 视频作者信息
     */
    @ApiModelProperty(value = "作者信息")
    private User author;

    /**
     * 视频的评论总数
     */
    @Setter(onMethod_ = {@JsonProperty("comment_count")})
    @ApiModelProperty(value = "评论数")
    private long commentCount;

    /**
     * 视频播放地址
     */
    @Setter(onMethod_ = {@JsonProperty("play_url")})
    @ApiModelProperty(value = "视频播放地址")
    private String playurl;

    /**
     * 视频封面地址
     */
    @Setter(onMethod_ = {@JsonProperty("cover_url")})
    @ApiModelProperty(value = "视频封面地址")
    private String coverurl;

    /**
     * 视频的点赞总数
     */
    @Setter(onMethod_ = {@JsonProperty("favorite_count")})
    @ApiModelProperty(value = "视频的点赞总数")
    private int favoriteCount;



    /**
     * true-已点赞，false-未点赞
     */
    @Setter(onMethod_ = {@JsonProperty("is_favorite")})
    @ApiModelProperty(value = "是否已点赞")
    private boolean isFavorite;


    /**
     * 视频标题
     */
    @ApiModelProperty(value = "视频标题")
    private String title;
}
